/**
 * Copyright(c) 2006-2008, FeyaSoft Inc.
 */
package("feyaSoft.careConn");

/**
 * This JS is mainly used to list actions in the desktop.
 * It is the core part of the system.
 *
 * @author fzhuang
 * @Date Oct 6, 2007
 */
feyaSoft.careConn.Description = function() {
	
	return {	
	    /* 
	     * Pop-up about us window now with 
	     *   width:500 and height:300 
	     */
	    descWindow : function(app, src){
	        var desktop = app.getDesktop();
	        var win = desktop.getWindow('careConnDesc');
	        if(!win){
	            win = desktop.createWindow({
	                id: 'careConnDesc',
	                title:'CareConn Description',
	                width:650,
	                height:450,
	                x: 160,
	                y: 20,
	                iconCls: 'tabs',
	                shim:false,
	                animCollapse:false,
	                border:false,
	                constrainHeader:true,
	
	                layout: 'fit',
	                items:
	                    new Ext.TabPanel({
	                        activeTab:0,
	
	                        items: [{
	                            title: 'Goal and Objectives',
	                            header:false,
	                            autoScroll:true,
	                            autoLoad: {url: '/public/html/careConn/goal.html', scripts: true},
	                            border:false
	                        },{
	                            title: 'Modules',
	                            header: false,
	                            autoScroll:true,
	                            autoLoad: {url: '/public/html/careConn/modules.html', scripts: true},
	                            border:false
	                        }]
	                    })
	            });
	        }
	        win.show();
	    }
	}


}();